<div class="search">
  <h1>What do you want to find?</h1>
  <form action="<?php echo url_for('search') ?>" method="post">   
    <input type="text" name="query" value="<?php echo $sf_request->getPostParameter('query') ?>" id="search_keywords"/>
    <img id="loader" name="img" alt ="" src="/images/loader.gif" style="vertical-align: middle; display: none" />
    <div class="help">
      Enter keyword (name, category, description, ...)
    </div>
    <br>
    <input type="checkbox" name="name" checked class="search_params">Name
    <input type="checkbox" name="creator" checked class="search_params">Author e-mail
    <input type="checkbox" name ="category" checked class="search_params">Category
    <input type="checkbox" name ="description" checked  class="search_params">Description
  </form>
 </div>

<div id="documents">
  <?php if ($documents != null): ?>
    <?php include_partial('Document/list', 
      array(
        'documents' => $documents, 
        'no_write_versions' => true, 
        'no_write_view' => false)) ?>
  <?php endif;?>
</div>
